package com.remoter.example.consumer.impl;

import org.springframework.stereotype.Service;

import com.remoter.context.spring.annotation.Consumer;
import com.remoter.example.consumer.IMember;
import com.remoter.example.provider.IPerson;

/**
 * @author			koko
 * @date 			2017-08-10 09:13:15
 * @description 	类功能说明
 */
@Service
public class MemberImpl implements IMember{

	@Consumer(name="studentImpl")
	private IPerson person;
	
	@Consumer(name="teacherImpl")
	public void setPerson(IPerson p){
		System.out.println(p.say("from setPerson"));
	}
	
	@Override
	public String hello(String desc){
		System.out.println(this.person.say(desc));
		return "from member " + desc;
	}
	
}